// 导入 vue-router 模块
import VueRouter from 'vue-router'
// 导入vue页面
import HomeContainer from './component/labbar/HomeContainer.vue'
import MemberContainer from './component/labbar/MemberContainer.vue'
import SearchContainer from './component/labbar/SearchContainer.vue'
import ShopcarContainer from './component/labbar/ShopcarContainer.vue'
// 创建 VueRouter 实例名为 router
var router = new VueRouter({
    routes: [
        { path: '/home', component: HomeContainer },
        { path: '/member', component: MemberContainer },
        { path: '/shopcar', component: SearchContainer },
        { path: '/search', component: ShopcarContainer }
    ],
    linkActiveClass: 'mui-active'
})
// 向外暴露路由模块
export default router